public class Test {
    public static void main(String[] args) {
        String s="hello, world hh";
        String[] ss=s.split(" ");
        System.out.println(ss.length);
    }
}
